package com.stylefeng.guns.modular.system.service.impl;

import java.util.List;
import java.util.Map;

import com.stylefeng.guns.core.shiro.ShiroKit;
import com.stylefeng.guns.core.shiro.ShiroUser;
import com.stylefeng.guns.modular.system.model.MyGpcHistory;
import com.stylefeng.guns.modular.system.dao.MyGpcHistoryMapper;
import com.stylefeng.guns.modular.system.service.IMyGpcHistoryService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-13
 */
@Service
public class MyGpcHistoryServiceImpl extends ServiceImpl<MyGpcHistoryMapper, MyGpcHistory> implements IMyGpcHistoryService {

	@Autowired
	private MyGpcHistoryMapper  myGpcHistoryMapper;
	
	@Override
	public List<Map<String, Object>> selectMapsByDm(Page<MyGpcHistory> page,
			String date, String dm) {
		ShiroUser shiroUser = ShiroKit.getUser();
		return myGpcHistoryMapper.selectMapsByDm(page,date,dm,shiroUser.getId());
	}

}
